import java.util.Arrays;
import java.util.PriorityQueue;


public class Test {
    public static  void main(String[] args) {
        Heap heap = new Heap();
        int[] arr = new int[]{27,15,19,18,28,34,65,49,25,37};
        heap.init(arr);
        heap.creatHeap();//大根堆
        heap.heapSort();
        heap.offer(1);
        heap.offer(3);
        heap.offer(5);
        //int[] ret = heap.smallK(arr,3);
        //System.out.println(Arrays.toString(ret));
    }
}
